<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="layui-form timo-compile">
    <form th:action="@{/manage/company/save}">
        <input type="hidden" name="id" th:if="${company}" th:value="${company.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">企业名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="company_name" placeholder="请输入企业名称"
                       th:value="${company?.company_name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">企业代码</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="company_num" placeholder="请输入企业代码"
                       th:value="${company?.company_num}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">外部ID</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="company_out_id" placeholder="请输入外部ID"
                       th:value="${company?.company_out_id}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开户行</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="deposit_bank" placeholder="请输入开户行"
                       th:value="${company?.deposit_bank}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">银行账户</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="bank_account" placeholder="请输入银行账户"
                       th:value="${company?.bank_account}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">区域编码</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="area_code" placeholder="请输入区域编码"
                       th:value="${company?.area_code}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="address" placeholder="请输入地址"
                       th:value="${company?.address}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">纳税人类型</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="taxpayer_type" placeholder="请输入纳税人类型"
                       th:value="${company?.taxpayer_type}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">渠道KEY</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sourceKey" placeholder="请输入渠道KEY"
                       th:value="${company?.sourceKey}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">企业类型</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="type" placeholder="请输入企业类型"
                       th:value="${company?.type}">
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>